//
//  RegPwdSureCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/11/28.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "RegPwdSureCell.h"

@interface RegPwdSureCell ()
@property (weak, nonatomic) IBOutlet UITextField *rightTextField;

@end

@implementation RegPwdSureCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.rightTextField.font = MYFONT(15);
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(textChange) name:UITextFieldTextDidChangeNotification object:self.rightTextField];
    
    
}


- (void)setModel:(RegisterInfoModel *)model{
    
    _model = model;
    
    if (_model.type != nil) {
        self.rightTextField.placeholder = @"再次输入新密码";
    }
    
    
    if (_model.surePassword.length > 0) {
        
        self.rightTextField.text = _model.surePassword;
    }
    
    
}


- (void)textChange{
    
    self.model.surePassword = self.rightTextField.text;
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
